#if !defined(AFX_TESTDLG_H__A62A0E0B_8DC3_45A7_B10D_D201D96E4CD1__INCLUDED_)
#define AFX_TESTDLG_H__A62A0E0B_8DC3_45A7_B10D_D201D96E4CD1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TestDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CTestDlg dialog

class CTestDlg : public CDialog
{
// Construction
public:
	CTestDlg(CWnd* pParent = NULL);   // standard constructor
    void FreshTrace();
    CMenu m_popmenu;
    //CString m_strFilter;
    CStringArray m_aCmdFilter;
    BOOL    mHexBack;
	BOOL    mCustomLock;
	DWORD   m_CustomCode;
	void OnAuthEvent(BYTE stat);
	void StartAuthProc();
	int  m_authCont;
	

// Dialog Data
	//{{AFX_DATA(CTestDlg)
	enum { IDD = IDD_TEST_DIALOG };
	CListCtrl	m_listTest;
	CListCtrl	m_ListTraceSend;
	CComboBox	m_oTxtPram;
	CListBox	m_oCmdList;
	BOOL	    m_bIsHex;
	BOOL        m_auto_update_time;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnBtnSend();
	afx_msg void OnRclickListOutTrace(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnMenuUsbOnline();
	afx_msg void OnMenuSetFilter();
	afx_msg void OnMenuNoFilter();
	afx_msg void OnMenuClear();
	afx_msg void OnSelchangeCmdList();
	afx_msg void OnDisplayAutotest();
	afx_msg void OnDblclkCmdList();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	BOOL m_bAutoUsbOn;
	afx_msg void OnBnClickedChkUsbon();
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	afx_msg void OnBnClickedButton3();
	afx_msg void OnBnClickedBtnSend2();
	void burnCumstomCode();
	CString m_strCode;
	BOOL m_auto_asc;
	CString m_strLog;
	virtual BOOL DestroyWindow();
	afx_msg LONG ShowLog(WPARAM wParam, LPARAM lParam);
	afx_msg void OnBnClickedChkAutotime();	
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TESTDLG_H__A62A0E0B_8DC3_45A7_B10D_D201D96E4CD1__INCLUDED_)
